import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

// element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// avue
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'
import zhLocale from '@smallwei/avue/lib/locale/lang/zh'
import axios from 'axios'

// 加入弹窗
import modalPlugin from './global-model/modalPlugin'

const app = createApp(App)
app.use(ElementPlus, { locale: zhCn, message: { duration: 500 } })
app.use(Avue, { locale: zhLocale, axios })
app.use(router)
app.use(modalPlugin)

app.mount('#app')
